﻿using System;
using System.Windows.Forms;

using Spencen.Mobile.UI.Commanding;

namespace Spencen.Mobile.UI.Controls
{
    public class MenuBar : MainMenu
    {
        public MenuBar( IDrawingHost host ) : base()
        {
        }
    }

    public class MenuBarItem : MenuItem
    {
        protected override void OnClick( EventArgs e )
        {
            base.OnClick( e );

            if ( Command != null )
                Command.Execute();
        }

        public ICommand Command { get; set; }

        [Content]
        public MenuItemCollection MenuBarItems { get { return MenuItems; } }
    }
}
